import request from '../../utils/request'

/**
 * 获取区域
 * @param status
 * @returns {Promise.<void>}
 */
export async function getAreaTree() {
    return request(apiPath.basedata + "/api/area/tree", {
        method: 'get',
    });
}

/**
 * 根据区编码获取街道
 * @param districtCode
 * @return
 */
export async function getAreaStreetsTree({ districtCode }){
    return request(apiPath.basedata + "/api/streets/" + districtCode, {
        method: 'get',
        data: {districtCode}
    });
}